
	<div class="block">
<div class="invertedshiftdown">
		
		<ul>
			<li><a href="?page=home">首页</a></li>
			<li class="current"><a href="?page=current_user">帐户详情</a></li>
			<li><a href="?page=contact_user">联络其他用户</a></li>
 		</ul>
		<form id="myform">
			<input type="text" class="textinput" /> <input class="submit" type="submit" value="搜索" />
		</form>
	</div>
	<br style="clear: both;" />
	
<div id= 'content'>
	<h2>您的帐号信息</h2>
	<?php
	//print_r($_GET);
	if(isset($_GET['stat'])){
		if($_GET['stat']=='success'){
			
		
	
	?>
	<div class="isa_success">
		<h4>操作成功：</h4>改基本信息
	</div>
	<?php
		}elseif($_GET['stat']=='error'&&$_GET['error']=='match'){
	?>
	<div class="isa_error">
		<h4>操作失败：</h4>两个密码不匹配
	</div>
	<?php
		}elseif($_GET['stat']=='error'&&$_GET['error']=='less'){
	?>
	<div class="isa_error">
		<h4>操作失败：</h4>密码长度不可小于4位
	</div>
	<?php
		}elseif($_GET['stat']=='error'&&$_GET['error']=='more'){
	?>
	<div class="isa_error">
		<h4>操作失败：</h4>密码长度不可大于10位
	</div>
	<?php
		}elseif($_GET['stat']=='error'&&$_GET['error']=='notExist'){
	?>
	<div class="isa_error">
		<h4>操作失败：</h4>无法更改新产品（此条形码不存在于数据库）
	</div>
	
		<?php
		}elseif($_GET['stat']=='error'&&$_GET['error']=='badData'){
	?>
	<div class="isa_error">
		<h4>操作失败：</h4>无法添加/更改产品（提交了无效数据）
	</div>
<?php

		}
}
	?>
	<dt class="W_bgcolor clearfix">
		<strong>基本信息</strong>
		<span><a class="W_linkb">（保密）</a></span>
	</dt>
	<dd>
	<ul>
		<li>真实姓名：<?php echo $currentUser->real_name;?></li>
		<li>邮箱：<?php echo $currentUser->email;?></li>
		<li>电话号码：<?php echo $currentUser->phone_number;?></li>
		<li>工作地址：<?php echo $currentUser->work_address;?></li>
		<li>密码：＊＊＊＊</li>
	</ul>
	</dd>
	<dt class="W_bgcolor clearfix">
		<strong>帐户信息</strong>
		<span><a class="W_linkb">（公开）</a></span>
	</dt>
	<dd>
	<ul>
		<li>用户名：<?php echo $currentUser->name;?></li>
		<li>权限：<?php echo $currentUser->getAuthorityName();?></li>
		<li>职位：<?php echo $currentUser->position;?></li>
		<li>帐号：<?php echo $currentUser->id;?></li>

		
	</ul>
	</dd>

<br>

<hr>
<div>
    <div class="form" >
    
    	<b>修改基本信息</b>
        <form action="api/" method="post" >
        	<input type="hidden" id='name' name="name" value=<?php echo $currentUser->name?> />
        	<input type="hidden" id='action' name="action" value="modify_current_account" />



    <div class="element">
        <label>真实姓名</label>
 
        <input type="text" id="real_name" name="real_name" class="text" value=<?php echo $currentUser->real_name?> >
    </div>
    <div class="element">
        <label>新密码</label>
 
        <input type="password" id="password" name="password" class="text" value=<?php echo $currentUser->password?> >
    </div>
    
    <div class="element">
        <label>新密码确认</label>
 
        <input type="password" id="passwordRepeat" name="passwordRepeat" class="text" value=<?php echo $currentUser->password?> >
    </div>
    <div class="element">
        <label>email</label>
        <input type="text" id="email" name="email" class="text" value=<?php echo $currentUser->email?> >
    </div>
    <div class="element">
        <label>电话号码</label>
        <input type="text" id="phone_number" name="phone_number" class="text" value=<?php echo $currentUser->phone_number?> >
    </div>   
    <div class="element">
        <label>工作地址</label>
        <input type="text" id="work_address" name="work_address" class="text" value=<?php echo $currentUser->work_address?> >
    </div>

    <div class="element">
<input type="submit" value="递交" />
        <div class="loading"></div>
    </div>
    </form>
  
    </div>
    
    <?php
    include('view/userUpload.php');
    ?>
    </div>
</div>
<div class="clear"></div>
	</div>